package com.mininglamp.model;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name="orders")
public class Orders {

	@Id
	@Column(name = "id", nullable = true)
	@GenericGenerator(name = "idGenerator", strategy = "uuid") // 这个是hibernate的注解/生成32位UUID
	@GeneratedValue(generator = "idGenerator")
	private String id;
	
	@Column(name = "wetchat_id")
	private String wetchatId;
	
	private String phone;
	
	@Column(name = "receipt_name")
	private String receiptName;
	
	private String specification;
	private String address;
	
	@Column(name = "courier_id")
	private String courierId;
	
	@Column(name = "update_time")
	private Timestamp updateTime;
	
}
